package br.com.fpf.pontoapp.model.entity;

import br.com.fpf.pontoapp.model.constant.OccurrenceConst;

/**
 * The Class WorkDay.
 * 
 * @author irlan.gomes
 */
public class WorkDay extends AbstractBaseEntity {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/** The Constant ID_USER. */
	public static final String ID_USER = "ID_USER";

	/** The Constant ID_BEAT_DAY. */
	public static final String ID_BEAT_POINT = "ID_BEAT_POINT";

	/** The Constant DT_WORK_DAY. */
	public static final String DT_WORK_DAY = "DT_WORK_DAY";

	/** The Constant OCURRENCE. */
	public static final String OCURRENCE = "OCURRENCE";

	/** The id user. */
	private long idUser;

	/** The id beat point. */
	private long idBeatPoint;

	/** The date work day. */
	private String dtWorkDay;

	/** The occurrence. */
	private int occurrence;

	/**
	 * Gets the dt work day.
	 * 
	 * @return the dt work day
	 */
	public String getDtWorkDay() {
		return dtWorkDay;
	}

	/**
	 * Sets the dt work day.
	 * 
	 * @param dtWorkDay
	 *            the new dt work day
	 */
	public void setDtWorkDay(String dtWorkDay) {
		this.dtWorkDay = dtWorkDay;
	}

	/**
	 * Gets the occurrence.
	 * 
	 * @return the occurrence
	 */
	public int getOccurrence() {
		return OccurrenceConst.getOccurrenceConst(occurrence).getResource();
	}

	/**
	 * Sets the occurrence.
	 * 
	 * @param occurrence
	 *            the new occurrence
	 */
	public void setOccurrence(int occurrence) {
		this.occurrence = occurrence;
	}

	public long getIdUser() {
		return idUser;
	}

	public void setIdUser(long idUser) {
		this.idUser = idUser;
	}

	public long getIdBeatPoint() {
		return idBeatPoint;
	}

	public void setIdBeatPoint(long idBeatPoint) {
		this.idBeatPoint = idBeatPoint;
	}

}
